package com.spring.bucks.exception;

import org.springframework.http.HttpStatus;

/**
 * @author 超
 * Create by fengc on  2022/8/20 17:10
 * 自定义异常类
 */
public class BusinessException extends RuntimeException{

    private Integer code;
    private final String msg;

    public BusinessException(Integer code, String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public BusinessException(String msg){
        super(msg);
        this.msg = msg;
    }

}
